<div id="content">
  <div id="title">
    <h1>学校列表</h1>
    <p class="tips">3年多的时间，多背一公斤的志愿者们走访了200所学校，<%= link_to "返回首页", home_url %></p>
  </div>
  <div id="schools-list">
    <h2>志愿者们走过的省份</h2>
    <% for province in @provinces -%>
      <a href="#province-<%= province.id%>"><%= province.title %></a>&nbsp;
    <% end -%>
  
    <hr />
    <% flag = 0 -%>
    <% for school in @schools -%>
      <% if school.province_id != flag %>
        <h2><a name="province-<%= school.province_id %>"></a><%= school.province.title %></h2>
        <% flag = school.province_id -%>
      <% end -%>
      <p><%= link_to school.title, school_path(school) %></p>
    <% end -%>
    <hr />
    <div style="text-align:center;font-size:0.8em">
      <%= link_to "返回首页", home_url %>
    </div>
  </div>  
</div>